import { Card } from "antd";
import { Profile } from "./profile";

// type WorkplaceProps = {
//   children: ReactNode;
//   currentTab: string;
//   user:User
// };

// const Workplace = (props: WorkplaceProps) => {
type ProfileProps = {
  profile: Profile;
};

const ProfileCard = (props: ProfileProps) => {
  return (
    <Card title="个人信息" style={{width:300}}>
      <p>姓名：{props.profile.name}</p>
      <p>性别：{props.profile.bio}</p>
      <p>电话：{props.profile.telephone}</p>
      <p>住房：{props.profile.house}</p>
      <p>邮箱：{props.profile.email}</p>
    </Card>
  );
};
export default ProfileCard;
